﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Krile.Kernel.Plugin;
using Krile.Kernel.Plugin.Operations;

namespace Mixture.PluginImpl
{
    public class MOperation : Operation, IAgent
    {
        MService mixiService = new MService();
        internal MService MixiService { get { return mixiService; } }

        StatusControl sctrl = new StatusControl();
        internal StatusControl StatusControl { get { return sctrl; } }

        public override string ParentPluginId
        {
            get { return Define.PluginId; }
        }

        public override Operation.OperationTypes OperationType
        {
            get { return OperationTypes.Agent; }
        }

        public override void Begin()
        {
            //throw new NotImplementedException();
        }

        public override void Exit()
        {
            //throw new NotImplementedException();
        }

        public override Dictionary<string, Krile.Kernel.Control.ConfigPage> GetConfigPages()
        {
            return null;
        }

        public Krile.Kernel.Data.Service HostingService
        {
            get { return mixiService; }
        }

        public string InputMethodId
        {
            get { return Define.InputMethodId; }
        }

        public bool IsMasterId(string userid)
        {
            return false;
        }

        public Krile.Kernel.Plugin.Operations.AgentElements.IStatusControl Status
        {
            get { return sctrl; }
        }
    }
}
